<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="psl.UserSession" %>
<%--
  Created by IntelliJ IDEA.
  User: phiteshkumar
  Date: Mar 6, 2007
  Time: 11:43:00 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="TagXML" prefix="Search" %>
<%
    UserSession moUserSession = (UserSession) session.getAttribute ("UserSession");
%>
<html>
  <head>
      <title>Login Page</title>
      <link href='Stylesheet.css' type='text/css' rel='stylesheet'>
      <script type='text/javascript' src='ROController.js' language='JavaScript'></script>
  </head>
  <body>
  <form name='DataForm' onsubmit='return false;'>
    <input type='hidden' name='action_fld'>
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2">
                <%@ include file="ROCommon/Head.jsp" %>
            </td>
        </tr>
        <tr>
            <td align="center">
                <table width="100%">
                    <tr height="22">
                        <td bgcolor="salmon" align="left"></td>
                        <td bgcolor="salmon" align="center"><font color='black' size='3' style='font-weight:bold;'>Login Page</font></td>
<%                      if(moUserSession.msLogin!=null)
                        {
%>
                        <td width="35" bgcolor="burlywood" align="right"><a href="javascript:performHome()"><font color='black' size='2' style=font-weight:bold;>Home</font></a></td>
<%
                        }
%>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="middle" height="450">
                <table border="0" width="20%" cellpadding="2" cellspacing="2">
                    <tr>
                        <td><font style="font-weight:bold;">UserName:</font></td>
                        <td><input type="text" value="hitesh" name='username'/></td>
                    </tr>
                    <tr>
                        <td><font style="font-weight:bold;">Password:</font></td>
                        <td><input type="password" value="panchani" name='password'/></td>
                    </tr>
                    <tr height="35" valign="middle">
                        <td colspan="2" align="left">
                            <button style='height:23px;width:50px;' onMouseOver="className='activeImageButton';"
                              onMouseOut="className='imageButton';" class='imageButton' id='login'
                              onclick="performLogin();" accesskey='L' type='button'>
                                <u>L</u>ogin
                            </button>
                            &nbsp;
                            <button style='height:23px;width:55px;' onMouseOver="className='activeImageButton';"
                              onMouseOut="className='imageButton';" class='imageButton' id='finish'
                              onclick="performCancel();" accesskey='F' type='button'>
                                <u>C</u>ancel
                            </button>
                            &nbsp;
                            <button style='height:23px;width:77px;' onMouseOver="className='activeImageButton';"
                              onMouseOut="className='imageButton';" class='imageButton' id='new'
                              onclick="performNewUser();" accesskey='N' type='button'>
                                <u>N</u>ew User !
                            </button>
                        </td>
                    </tr>
                </table>
            </td>
         </tr>
      </table>
<%

    if(moUserSession.msError!=null)
    {

%>
      <div class='message_body'>
          <table width=100% border=0 cellspacing=1 cellpadding=0>
              <tr>
                  <td width=10>
                     <img src='img/feedback-error.gif'>&nbsp;
                  </td>
                  <td><b><%=moUserSession.msError%></b></td>
              </tr>
          </table>
      </div>
      <%
}
      %>
    </form>
  </body>
</html>